package cc.lishixi.tdd;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Tags;
import org.junit.jupiter.api.Test;

/**
 * @author LiShixi 2020/12/27 5:40 下午
 * @email loyy77@163.com
 */
@Tag("fast")
public class TagDemo {
    @Tag("fast")
    @Test
    public void fastTest1() {
        Assertions.assertTrue(true);
    }

    @Tag("slow")
    @Test
    public void fastTest2() {
        Assertions.assertTrue(true);
    }

    /**
     * build.gradle:
     * useJUnitPlatform({
     * 		includeTags("fast & slow")
     * //		excludeTags 'slow'
     *        })
     */
    @Tags({@Tag("fast"), @Tag("slow")})
    @Test
    public void fastTest3() {
        Assertions.assertTrue(true);
    }
}
